Having Invalid column name when the name exist SQL Server